export function MapToObj(strMap) {
    let obj = Object.create(null);
    for (let [k, v] of strMap) {
        obj[k] = v;
    }
    return obj;
}
/**
 *map转换为json
 */
export function mapToJson(map) {
    return JSON.stringify(MapToObj(map));
}